Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Minor fixes in packaging to make it compatible with maturin 1.4.0 #39

Merged
merged 12 commits into from
Jan 23, 2024

Conversation

johandahlberg
Copy link
Contributor

I had some issues when trying to build graspologic-native, and the following updates seemed to do the trick to get everything working.

I basically:

  • reorganized the metadata a bit
  • relaxed the maturin requierment
  • update the install instructions
  • updated supported python versions in the README to match what is mentioned in the "classifier" section

Thank you for providing such a nice package!

@johandahlberg
Copy link
Contributor Author

@microsoft-github-policy-service agree company="Pixelgen Technologies AB"

@daxpryce
Copy link
Contributor

Single comment for review left inline, if 3.12 does break it then let's not worry about it now we'll just create an issue to fix it for later :)

@daxpryce
Copy link
Contributor

Seems like it is failing right now because maturin's cli args changed since the time I wrote it (which is why I had it pinned to the [0.12..0.13) range, I was tired of breaking changes. Once that is fixed in the github action for building it, we should be good to go though.

@daxpryce daxpryce self-requested a review January 17, 2024 17:31
@daxpryce
Copy link
Contributor

You will also need to bump the version in pyo3's Cargo.toml file to at least 1.2.1 (we can't publish over old versions and the build is set to fail if any of the publication steps fails). I don't think it's really worth trying to make Cargo happy with the pep rules around "1.2.0.post1" as a valid version, and we're not changing anything in the api so 1.2.1 should comply enough with semver to make everyone as happy as they're going to get :)

@johandahlberg
Copy link
Contributor Author

Thank you for the review!

I can't seem to find the inline comment you mention.

For the other issues I have:

  • changed the build actions to use PyO3/maturin-action@v1 which as far as I've been able to tell is the new version of that used to be messense/maturin-action@v1. And then used that to set the target for the MacOS build.
  • explicitly adding build the source dist for the ubuntu build, since otherwise it didn't appear to show up
  • updated the version to 1.2.1 as suggested
  • locked the maturin version to be [1.4, 2.0), with 1.4.0 specifically being used in the github workflow
  • updated a bunch of "base" actions to their latest versions to quite the warnings associated with them

Let me know if there is anything I've missed, or that you'd like done differently. Also, feel free to push any changes you deem necessary to this branch.

@daxpryce
Copy link
Contributor

daxpryce commented Jan 23, 2024

My inline comments have fully disappeared. Let me do this again and check. In the meantime I'm going to approve the workflow and make sure it's working e2e.

Edit: sorry about sending you on a wild goose chase re: the inline comments. I don't know what happened! I hope you didn't spend too much time searching for them 😬

Writing out the sha256 checksum for the sdist in `dist/`
We should probably support 3.12 as well, since it's a final release. It *should* work, since we're specifically only targeting the broader python 3 abi with this. I should write some simple unit tests that run across the full matrix of python versions. That's a fix for me to do, though.
3.12 support! We think!
Copy link
Contributor

@daxpryce daxpryce left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved!

@daxpryce daxpryce merged commit 4a06a86 into graspologic-org:dev Jan 23, 2024
7 checks passed
@johandahlberg
Copy link
Contributor Author

Thank you for finishing this up! And, no worries about the inline comment - I didn't spend long looking for it.

@daxpryce
Copy link
Contributor

daxpryce commented Jan 25, 2024 via email

@johandahlberg
Copy link
Contributor Author

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants